//
//  AddMailboxCell.m
//  MIDI
//
//  Created by 邵子凡 on 15/11/23.
//  Copyright © 2015年 QXSX. All rights reserved.
//

#import "AddMailboxCell.h"
#import "UserDataSingleton.h"

@implementation AddMailboxCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    
    static NSString *ID = @"AddMailboxCell";
    
    AddMailboxCell  *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    
    if (cell == nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"AddMailboxCell" owner:nil options:nil]firstObject] ;
    }
    
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    
    return cell;
}

- (void)awakeFromNib {
    
    UserDataSingleton * userdata = [UserDataSingleton shareInstance];
    if([userdata isLogin])
    {
        self.mailTextField.text = userdata.eamil;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end







